# Make sure we have updated URLs to packages etc.
sudo apt-get update -y

# For server edition of Ubuntu add-apt-repository depends on
sudo apt-get install -y software-properties-common

# Add PPA for OPM packages
sudo add-apt-repository -y ppa:opm/ppa
sudo apt-get update -y

# Packages necessary for building
sudo apt-get install -y build-essential \
  gfortran pkg-config cmake

# Packages necessary for documentation
sudo apt-get install -y doxygen ghostscript \
  texlive-latex-recommended libpgf-dev gnuplot

# Packages necessary for version control
sudo apt-get install -y git-core

# MPI for parallel programs
sudo apt-get install -y mpi-default-dev

# Prerequisite libraries
sudo apt-get install -y libblas-dev \
  libboost-all-dev libsuitesparse-dev \
  libtrilinos-zoltan-dev

# Parts of Dune 2.8 in PPA
sudo apt-get install libdune-common-dev \
  libdune-geometry-dev libdune-istl-dev \
  libdune-grid-dev
  
  
